#pragma once
#include <unistd.h>

//先描述 -每一个进程
class Channel
{
public:
    Channel(int fd,pid_t id):_fd(fd),_id(id)
    {}

    void Send(int num)
    {
        write(_fd,&num,sizeof(num));
    }

    int _fd;
    pid_t _id;
};